import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
   {
     path: "/",
     name: "Login",
     component:  () => import("../views/login/login.vue")
   },
   {
     path: "/home",
     name: "Home",
     redirect: "/welcome",
     component: () => import("../views/home/index.vue"),
     children:[
       {path: "/welcome",component: () => import("../views/home/welcome.vue")},
       { path: "/admin/home",name:"首页",component: () => import("../views/admin/welcome/index.vue")},
       { path: "/admin/user/student",name:"学生列表",component: () => import("../views/admin/user/Student.vue")},
       { path: "/admin/user/teacher",name:"教师列表",component: () => import("../views/admin/user/Teacher.vue")},
       { path: "/admin/user/manager",name:"管理员列表",component: () => import("../views/admin/user/Manager.vue")},
       { path: "/admin/subject/list",name:"学科列表",component: () => import("../views/admin/subject/SubjectList.vue")},
       { path: "/admin/exam/list",name:"试卷列表",component: () => import("../views/admin/exam/ExamList.vue")},
       { path: "/admin/exam/create",name:"试卷创编",component: () => import("../views/admin/exam/ExamCreate.vue")},
       { path: "/admin/question/list",name:"题目列表",component: () => import("../views/admin/question/TopicList.vue")},
       { path: "/admin/question/singleCreate",name:"单选题创编",component: () => import("../views/admin/question/SingleTopicCreate.vue")},
       { path: "/admin/question/multipartCreate",name:"多选题创编",component: () => import("../views/admin/question/MultipartTopicCreate.vue")},
       { path: "/admin/question/judgeCreate",name:"判断题创编",component: () => import("../views/admin/question/JudgeTopicCreate.vue")},
       { path: "/admin/question/gapfillingCreate",name:"填空题创编",component: () => import("../views/admin/question/GapFillingTopicCreate.vue")},
       { path: "/admin/question/shortAnswerCreate",name:"简答题创编",component: () => import("../views/admin/question/ShortAnswerTopicCreate.vue")},
       { path: "/admin/task/list",name:"任务列表",component: () => import("../views/admin/task/TaskList.vue")},
       { path: "/admin/task/create",name:"任务创编",component: () => import("../views/admin/task/TaskCreate.vue")},
       { path: "/admin/correcting/list",name:"批改列表",component: () => import("../views/admin/correcting/CorrectingList.vue")},
       { path: "/admin/correcting/finish",name:"试卷完成",component: () => import("../views/admin/correcting/CorrectingFinish.vue")},
       { path: "/admin/information/list",name:"消息列表",component: () => import("../views/admin/information/InformationList.vue")},
       { path: "/admin/information/send",name:"消息发送",component: () => import("../views/admin/information/SendInformation.vue")},
       { path: "/admin/log/userlog",name:"用户日志",component: () => import("../views/admin/log/UserLog.vue")},
       { path: "/admin/system/role",name:"角色管理",component: () => import("../views/admin/system/SysRole.vue")},
       { path: "/admin/system/menu",name:"菜单管理",component: () => import("../views/admin/system/SysMenu.vue")},
       { path: "/admin/knowledge/list",name:"知识点列表",component: () => import("../views/admin/knowledge/KnowledgeList.vue")},
       { path: "/admin/knowledge/create",name:"知识点创编",component: () => import("../views/admin/knowledge/KnowledgeCreate.vue")},
       { path: "/admin/correcting/judge",name:"试卷批改",component: () => import("../views/admin/correcting/components/edit.vue")},
       { path: "/admin/correcting/read",name:"试卷查看",component: () => import("../views/admin/correcting/components/read.vue")},
       { path: "/teacher/correcting/judge",name:"试卷批改",component: () => import("../views/teacher/correcting/components/edit.vue")},
       { path: "/teacher/correcting/read",name:"试卷查看",component: () => import("../views/teacher/correcting/components/read.vue")},
       { path: "/teacher/home",name:"首页",component: () => import("../views/teacher/welcome/index.vue")},
       { path: "/teacher/user/student",name:"学生列表",component: () => import("../views/teacher/user/StudentList.vue")},
       { path: "/teacher/clazz/list",name:"班级列表",component: () => import("../views/teacher/clazz/ClazzList.vue")},
       { path: "/teacher/clazz/create",name:"班级创编",component: () => import("../views/teacher/clazz/ClazzCreate.vue")},
       { path: "/teacher/exam/list",name:"试卷列表",component: () => import("../views/teacher/exam/ExamList.vue")},
       { path: "/teacher/exam/create",name:"试卷创编",component: () => import("../views/teacher/exam/ExamCreate.vue")},
       { path: "/teacher/exam/read",name:"试卷查看",component: () => import("../views/teacher/exam/components/read.vue")},
       { path: "/teacher/question/list",name:"题目列表",component: () => import("../views/teacher/question/TopicList.vue")},
       { path: "/teacher/question/singleCreate",name:"单选题创编",component: () => import("../views/teacher/question/SingleTopicCreate.vue")},
       { path: "/teacher/question/multipartCreate",name:"多选题创编",component: () => import("../views/teacher/question/MultipartTopicCreate.vue")},
       { path: "/teacher/question/judgeCreate",name:"判断题创编",component: () => import("../views/teacher/question/JudgeTopicCreate.vue")},
       { path: "/teacher/question/gapfillingCreate",name:"填空题创编",component: () => import("../views/teacher/question/GapFillingTopicCreate.vue")},
       { path: "/teacher/question/shortAnswerCreate",name:"简答题创编",component: () => import("../views/teacher/question/ShortAnswerTopicCreate.vue")},
       { path: "/teacher/correcting/list",name:"批改列表",component: () => import("../views/teacher/correcting/CorrectingList.vue")},
       { path: "/teacher/correcting/finish",name:"试卷完成",component: () => import("../views/teacher/correcting/CorrectingFinish.vue")},
       { path: "/teacher/performance/list",name:"试卷列表",component: () => import("../views/teacher/performance/PerformanceList.vue")},
       { path: "/teacher/performance/analyze",name:"成绩分析",component: () => import("../views/teacher/performance/components/Performance.vue")},
       { path: "/profile/index",name:"个人简介",component: () => import("../views/profile/index.vue")},
       
      ]
   },
   { path: "/paper/print",name:"查看试卷",component: () => import("../views/print/index.vue")},
   { path: '/403', component: () => import('../views/error-page/403')},
   { path: '/401', component: () => import('../views/error-page/401')},
   { path: '/404', component: () => import('../views/error-page/404')}
]

const router = new VueRouter({
  routes
})

export default router
